import{myBalance} from '../../service/th/Balance'

export default {
    namespaced:true,
    state:{
        balanceDO:{},
    },
    
    mutations:{
        setMyBalance(state,balanceDO){
            state.balanceDO=balanceDO
        },

    },
    actions:{
        async myBalance(context,userId){
            console.log(userId)
            let response =await myBalance(userId);
            console.log(response)
        context.commit("setMyBalance",response.data);
        }

    }
}